class AddTodoRepeatDays < ActiveRecord::Migration
  def self.up
  	add_column :todos, :repeat_days, :integer
    @todos = Todo.find(:all, :conditions=>"repeat_days is null")
    for todo in @todos do 
	todo.repeat_days = 0
	todo.update
    end
	
  end

  def self.down
  	remove_column :todos, :repeat_days
  end
end
